package org.Niu.July7th;

import com.sun.tools.javac.Main;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SLF4JTest {

    //commonsLogging（默认使用jdk默认日志） + log4j  VS  SLF4J + Logback
    //                            占位符写法更优雅
    public static void main(String[] args) {
        Logger logger = LoggerFactory.getLogger(Main.class);
//        对比commonsLogging
//        Log log = LogFactory.getLog(ParentChild.class);
        int a = 10;
        String str = "test";
        logger.info("测试---{}==={}",a,str);
    }
}
